﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Models;
using DAL;
namespace BLL
{
    public class FileNameAddressManager
    {
        FileNameAddressService objFileNameAddressService = new FileNameAddressService();
        /// <summary>
        /// 获取所有的文件信息
        /// </summary>
        /// <returns></returns>
        public List<FileNameAddress> GetAllFileName()
        {
            return objFileNameAddressService.GetAllFileName();
        }
        /// <summary>
        /// 按ID号查询文件信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public FileNameAddress GetFileNameById(string id)
        {
            return objFileNameAddressService.GetFileNameById(id);
        }
        /// <summary>
        /// 新增一个文件
        /// </summary>
        /// <param name="objFileNameAddress">文件信息</param>
        /// <returns>返回值为ID</returns>
        public int AddFileName(FileNameAddress objFileNameAddress)
        {
            return objFileNameAddressService.AddFileName(objFileNameAddress);
        }
         /// <summary>
        /// 修改文件信息
        /// </summary>
        /// <param name="objFileNameAddress">修改信息</param>
        /// <returns></returns>
        public int UpdateFileName(FileNameAddress objFileNameAddress)
        {
            return objFileNameAddressService.UpdateFileName(objFileNameAddress);
        }
         /// <summary>
        /// 删除文件信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public int DeleteFileName(string id)
        {
            return objFileNameAddressService.DeleteFileName(id);
        }
    }
}
